package cn.hnh.utils;

import com.alibaba.fastjson.JSONArray;

public class JsonUtils {
    public static String toJson(Object object){
        return JSONArray.toJSONString(object);
    }

    public static Object toObject(String json,Class object){
        return JSONArray.parseObject(json, object);
    }
}
